package sjtu.ist.warehouse4ws.service.cust;

import java.util.List;

import sjtu.ist.warehouse4ws.dao.cust.CustFunctionpointDao;
import sjtu.ist.warehouse4ws.model.CustFunctionpoint;

public class CustFunctionpointServiceImpl implements CustFunctionpointService{
	private CustFunctionpointDao custFunctionpointDao;

	public void setCustFunctionpointDao(CustFunctionpointDao custFunctionpointDao) {
		this.custFunctionpointDao = custFunctionpointDao;
	}

	@Override
	public CustFunctionpoint getCustFunctionPoint(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<CustFunctionpoint> getCustFunctionpointList(String processid) {
		// TODO Auto-generated method stub
		return (List<CustFunctionpoint>)custFunctionpointDao.findAllCustFunctionpoints(processid);
	}

	@Override
	public List<CustFunctionpoint> getCustFunctionpointList() {
		// TODO Auto-generated method stub
		return (List<CustFunctionpoint>)custFunctionpointDao.findAllCustFunctionpoints();
	}

	@Override
	public void saveCustFunctionpoint(CustFunctionpoint custFunctionpoint) {
		// TODO Auto-generated method stub
		custFunctionpointDao.saveCustFunctionpoint(custFunctionpoint);
	}
}
